﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// BasePage 的摘要说明
/// </summary>
public class BasePage : System.Web.UI.Page
{
	public BasePage()
	{
		//
		// TODO: 在此处添加构造函数逻辑
		//
	}

    protected void Page_Init(object sender, EventArgs e)
    {
        //if (this.ToString() != "ASP.page1_aspx")
        //{
        if (Session["UID"] == null || Session["UID"].ToString() == "")
        {
            Session.Clear();
            //Response.Write("Please <a href=\"logon.aspx\" target=\"_top\">log on</a> first.");
            //Response.End();
            //return;
            Response.Redirect("logon.aspx");
        }
        //}

        //this.StyleSheet="default.css";??
        //aspx:   
        //<link   rel="stylesheet"   id="lnkStyle"   href="style.css"   runat="server"/>   
        //aspx.vb:   
        //protected   lnkStyle   as   HtmlGenericControl   
        //lnkStyle.Attributes("href")   =   你的变量

        //if (IsPostBack)
        //{
        //    return;
        //}
    }

    
}
